package d2_com.itheima.log;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Test {
    public static final Logger LOGGER = LoggerFactory.getLogger("Test");

    public static void main(String[] args) {
        try {
            LOGGER.info("除法开始执行~");
            chu(5, 2);
            LOGGER.info("除法执行成功~");
        } catch (Exception e) {
            LOGGER.error("执行失败,出现bug");
        }
    }

    public static void chu(int a, int b) {
        LOGGER.debug("参数a:" + a);
        LOGGER.debug("参数b:" + b);
        int c = a / b;
        LOGGER.debug("结果是:" + c);
    }
}
